import { createRouter, createWebHashHistory } from "vue-router";

const routes = [
  {
   path: '/',
   redirect: '/home',
  },
  {
    path: '/home',
    component: () => import('@/views/home'),
    meta: {
      title: '首页'
    }
  },
  {
    path: '/login',
    component: () => import('@/views/login/login'),
    meta: {
      title: '登录'
    }
  }
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
})

export default router

